package com.sugar.real.estate.module.business.controller.admin.readyhouse.vo;

import com.sugar.real.estate.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.sugar.real.estate.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 现房分页 Request VO")
@Data
public class ReadyHousePageReqVO extends PageParam {

    @Schema(description = "房屋中文名")
    private String nameZhCn;

    /**
     * 户型（字典：1）
     */
    private String houseType;

    @Schema(description = "最小价格（单位：元）")
    private BigDecimal priceMin;

    @Schema(description = "最大价格（单位：元）")
    private BigDecimal priceMax;

    @Schema(description = "项目类型（字典：2）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private String projectType;

    @Schema(description = "销售方式中文名")
    private String salesMethodZhCn;

    @Schema(description = "所属省市区ID", example = "10087")
    private Long[] provinceId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
}